<template>
  <div class="ivu-input-wrapper ivu-input-type" style="width:200px;margin-right:15px;vertical-align:center;">
    <i class="ivu-icon ivu-icon-ios-search ivu-input-icon ivu-input-icon-normal"></i>
    <Input type="text" v-model="searchNameIn" :placeholder="placeholder" @on-change="changeSearch"></Input>
  </div>
</template>

<script>
  export default {
    name: 'ZlSearch',
    data() {
      return {
        searchNameIn: ''
      }
    },
    props: {
      placeholder: {
        type: String,
        default: ''
      }
    },
    methods: {
      changeSearch(event) {
        this.$emit('change', event.target.value)
      }
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>

</style>
